package com.yh.service.impl;

import java.util.List;

import com.yh.bean.Category;
import com.yh.bean.OfficeObject;
import com.yh.bean.OfficeObjectApply;

public interface OfficeObjectService {

	//查询所有分类
	public List<Category> querycategory();
	
	//根据条件查询物品
	public List<OfficeObject> queryoobycondition(OfficeObject oo);
	
	//根据条件查询借出物品
	public List<OfficeObjectApply> queryooabycondition(OfficeObjectApply ooa);
	
	//添加物品
	public int insertoo(OfficeObject oo);
	
	//添加分类
	public int insertcategory(Category ctg);
	
	//修改物品
	public int updateoo(OfficeObject oo);
	
	//修改物品
	public int deleteoo(int oo_id);
	
	//租用物品
	public int rentoo(OfficeObjectApply ooa);
	
	//库存减
	public int substore(OfficeObjectApply ooa);
	
	//库存加
	public int addstore(OfficeObjectApply ooa);
	
	//查询租用物品
	public List<OfficeObjectApply> sendoo(OfficeObjectApply ooa);
	
	//归还物品
	public int sendofficeobject(OfficeObjectApply ooa);
	
	//库存减
	public int delooa();
}
